﻿@model Epi.Web.MVC.Models.UserForgotPasswordModel
@{
    ViewBag.Title = "Epi Info™ Web Enter - Forgot Password";
   
}
<script type="text/jscript">
    $(document).ready(function () {

        $("#Cancel").click(function (event) {
            event.preventDefault();
            var url = '@Url.Action("Index", "Home")';
            window.location.href = url;


        });
    });
</script>

<div id="content" style="margin: 1em;">
    @using (Html.BeginForm("ForgotPassword", "Login", FormMethod.Post, new { id = "myform" }))
    {
        @Html.ValidationSummary(true, "Please correct the errors and try again.")
        <div id="forgotpwd" style="margin: 10px 0 2px; display: block;">
            <h2>
                Forgot Password
            </h2>
            <p>
                Enter your registered email address to have the password sent to you.</p>
            <label for="Email" style="display: block; font-weight: bold;">
                Email:</label>
            @Html.EditorFor(m => m.UserName)
            <p>
                <button type="submit" value="ForgotPassword" class="default">
                    Submit</button>
                &nbsp;&nbsp;&nbsp;
                <button type="button" value="Cancel" class="default" id="Cancel">
                    Cancel</button>
            </p>
        </div>

    }
</div>
